/*通过地址栏获取参数*/
function getUrlParms(name){
    var url = window.location.search;
    var theRequest = new Object();
    if (url.indexOf("?") != -1) {
        var str = url.substr(1);
        var str1 = str.split("&");
        for(var i = 0; i < str1.length; i ++) {

            if(str1[i].split("=")[0] == name){
                return str1[i].split("=")[1];
            }
        }
    }
    return null;
}

function isNull(obj){
    if(obj == "undefined" || obj == undefined || obj == null || obj == ""){
        return true;
    }else{
        return false;
    }
}
function isNotNull(obj){return !isNull(obj)}


//感觉类型名称返回图标
function getIos(suffixName,filePath){
    var iocPath = "";
    if(suffixName == ".docx" || suffixName == ".doc"){
        iocPath = path + "/admin/ico/wordico.jpg";
    }else if(suffixName == ".xlsx" || suffixName == ".xls"){
        iocPath = path + "/admin/ico/excelico.jpg";
    }else if(suffixName == ".pptx" || suffixName == ".ppt"){
        iocPath = path + "/admin/ico/pptico.jpg";
    }else if(suffixName == ".pdf"){
        iocPath = path + "/admin/ico/pdfico.jpg";
    }else if(suffixName == ".mp4"){
        iocPath = path + "/admin/ico/mp4ico.jpg";
    }else {
        iocPath = filePath;
    }
    return iocPath;
}